using DG.Tweening;
using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.EventSystems;
public class BtnAnim_Color : MonoBehaviour, IPointerDownHandler, IPointerUpHandler
{
    public ScaleAnimInspector down;
    public ScaleAnimInspector up;

    public void OnPointerDown(PointerEventData eventData)
    {
        transform.DOScale(down.scale,down.time).SetEase(down.ease);
    }

    public void OnPointerUp(PointerEventData eventData)
    {
        transform.DOScale(up.scale, up.time).SetEase(up.ease);
    }

    [Serializable]
    public class ScaleAnimInspector
    {
        public float scale;
        public float time;
        public Ease ease;
    }
}
